package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.Education;
import cn.wolfcode.crm.mapper.EducationMapper;
import cn.wolfcode.crm.service.IEducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EducationServiceImpl implements IEducationService {


    @Autowired
    private EducationMapper mapper;

    public void deleteByPrimaryKey(Long id) {
        mapper.deleteByPrimaryKey(id);
    }

    public void insert(Education record) {
        mapper.insert(record);

    }

    public Education selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    public List<Education> selectAll() {
        return mapper.selectAll();
    }

    public void updateByPrimaryKey(Education record) {
        mapper.updateByPrimaryKey(record);
    }

    public List<Education> queryByEmpId(Long id) {
        return mapper.queryByEmpId(id);
    }


}
